package team.pra.manager.service;

import team.pra.manager.common.ManagerResult;
import team.pra.manager.common.PageBean;
import team.pra.manager.common.PageHelper;
import team.pra.manager.pojo.Account;

import java.util.List;

public interface AccountService {

    PageBean<Account> queryByPage(int code,int size);

    List<Account> queryAll();

    Account queryById(Integer id);

    ManagerResult update(Account account);

    ManagerResult insert(Account account);

    ManagerResult delete(Integer id);
    //按条件查询
    void findAccountByCondition(PageHelper<Account> pageHelper);
}
